package com.sbr.seb.entity;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.sbr.seb.entity.server.ServerType;

@Entity
public class Server {
	
	
	
	private static final String DEFAULT_HOST = "localhost";
	private static final String DEFAULT_PORT = "8080";
	private static final String DEFAULT_LOGIN = "admin";
	private static final String DEFAULT_PASSWORD = "admin";
	
	@Id
	private int id;
	
	protected ServerType type;
	protected String name;
	
	protected String host;
	protected String port;
	protected String login;
	protected String password;
	
	public Server() {
		host = DEFAULT_HOST; 
		port = DEFAULT_PORT;
		login = DEFAULT_LOGIN;
		password = DEFAULT_PASSWORD;
	}

	public String getHost() {
		return host;
	}
	
	public void setHost(String host) {
		this.host = host;
	}
	
	public String getPort() {
		return port;
	}
	
	public void setPort(String port) {
		this.port = port;
	}
	
	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public ServerType getType() {
		return type;
	}

	public void setType(ServerType type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
